package com.ruoyi.project.hissystem.service.impl;

import com.ruoyi.project.hissystem.domain.SysExamCost;
import com.ruoyi.project.hissystem.mapper.ISysExamCostMapper;
import com.ruoyi.project.hissystem.service.ISysExamCostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ISysExamCostServiceImpl implements ISysExamCostService {
    @Autowired
    private ISysExamCostMapper iSysExamCostMapper;
    @Override
    public List<SysExamCost> selSysExamCost(SysExamCost sysExamCost) {
        List<SysExamCost> sysExamCosts = iSysExamCostMapper.selectSysExamCostList(sysExamCost);
        return sysExamCosts;
    }

    @Override
    public int insSysExamCost(SysExamCost sysExamCost) {
        int i = iSysExamCostMapper.insertSysExamCost(sysExamCost);
        return i;
    }

    @Override
    public SysExamCost selSysExamCostOne(int examid) {
        SysExamCost sysExamCost = iSysExamCostMapper.selectSysExamCostOne(examid);
        return sysExamCost;
    }

    @Override
    public int upSysExamCost(SysExamCost sysExamCost) {
        int i = iSysExamCostMapper.updateSysExamCost(sysExamCost);
        return i;
    }

    @Override
    public int delSysExamCost(int[] examids) {
        int i = iSysExamCostMapper.deleteSysExamCost(examids);
        return i;
    }
}